from django.db import models
from datetime import datetime


#用户账号类
class Users(models.Model):
    username = models.CharField(max_length=15)
    password = models.CharField(max_length=15)
    add_time = models.DateTimeField(default=datetime.now)
    # name = models.CharField(max_length=32)
    # age = models.IntegerField(default=20)
    # phone = models.CharField(max_length=16)
    # add_time = models.DateTimeField(default=datetime.now)

class IMG(models.Model):
    img = models.ImageField(upload_to='img')
    name = models.CharField(max_length=50)

# class Meta:
#     db_table = "r_Users"